package cn.bdqn.mapper;

import cn.bdqn.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserMapper extends BaseMapper<User> {

    public User getUserByUsrName(@Param("usrName") String usrName);
    /**
     * 查询用户表和角色表，进行分页
     * @param page 分页条件
     * @param param 过滤条件
     * @return
     */
    public IPage<User> getUsersByPage(IPage<User> page, @Param("param") Map<String,Object> param);
}
